package com.shop.service;

import java.util.List;

import com.shop.dao.BusinessDaoImpl;
import com.shop.dao.UserDaoImpl;
import com.shop.entity.Business;


public class BusinessService {
	private BusinessDaoImpl BusinessDaoImpl = new BusinessDaoImpl();
	
	public boolean isExist(Business business){
		return BusinessDaoImpl.isExist(business);
	}
	
	public List<Business> getAllBusiness(){
		List<Business> list = BusinessDaoImpl.getAllBusiness();
		return BusinessDaoImpl.getAllBusiness();
	}
	
	public Business addBusiness(Business business){
		business=BusinessDaoImpl.addBusiness(business);
		 System.out.println("service"+business.toString());
		return business;
		
	}
}
